/**
 * 
 */
package com.changil.nowonchangilchurch.protocol;


/**
 * UI상태값 저장 관련한 프리퍼런스 매니저
 * @author zeropol2
 *
 */
public class UIPreferenceManager {
	private volatile static UIPreferenceManager mInstance = null;

	public UIPreferenceManager(){
		
	}

	public static UIPreferenceManager getInstance() {
		if (mInstance == null)	{
			synchronized(UIPreferenceManager.class) {
				if (mInstance == null)
					mInstance = new UIPreferenceManager();
			}
		}
		return mInstance;
	}
	
	public void setPreviewImageViewPagerPosition(String articleId, int position) {
		PreferenceManager.getsInstance().savePreviewImageViewPagerPosition(articleId, position);
	}
	
	public int getPreviewImageViewPagerPosition(String articleId) {
		return PreferenceManager.getsInstance().loadPreviewImageViewPagerPosition(articleId);
	}
	
	public void clearPreviewImageViewPagerPosition() {
		PreferenceManager.getsInstance().clearPreviewImageViewPagerPosition();
	}
	

}
